<!doctype html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>我的</title>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <link href="../../css/mui.min.css" rel="stylesheet" />
        <link rel="stylesheet" type="text/css" href="../../css/mine.css"/>
    </head>
    <body>
        <div class="mui-content allContent">
            <div class="mui-row userTop">
                <div class="imgCard">
                    <div class="userImg">
                        <img src="https://api.ctmingyi.net/Uploads/doctor.png" />
                    </div>
                    <div class="userName"></div>
                </div>
            </div>
            <!-- 订单 -->
            <div class="mui-row order">
                <!-- <div class="title">我的订单</div> -->
                <ul class="mui-table-view mui-grid-view mui-grid-9">
                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" id="classOrder">
                        <a>
                            <span class="mui-icon mui-icon-chat"></span>
                            <div class="mui-media-body">问诊订单</div>
                        </a>
                    </li>
                    <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3" id="interOrder">
                        <a>
                            <span class="mui-icon mui-icon-chatboxes"></span>
                            <div class="mui-media-body">课程订单</div>
                        </a>
                    </li>
                </ul>
            </div>
            <div class="mui-row cost">
                <ul class="mui-table-view">
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right" id="info">
                            <span class="mui-icon iconfont icon-dingdan"></span>
                            个人信息
                        </a>
                    </li>
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right" id="order">
                            <span class="mui-icon iconfont icon-dingdan"></span>
                            我的订单
                        </a>
                    </li>
                    <li class="mui-table-view-cell" id="moneyList">
                        <a class="mui-navigate-right">
                            <span class="mui-icon iconfont icon-tixian"></span>
                            我的收入
                        </a>
                    </li>
                    <li class="mui-table-view-cell" id="servicePromise">
                        <a class="mui-navigate-right">
                            <span class="mui-icon iconfont icon-fuwu"></span>
                            开通服务
                        </a>
                    </li>
                    <li class="mui-table-view-cell">
                        <a class="mui-navigate-right" id="setting">
                            <span class="mui-icon iconfont icon-dingdan"></span>
                            设置
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <script src="../../js/mui.min.js"></script>
        <script src="../../js/userInfo.js"></script>
        <script src="../../js/tool.js"></script>
        <script type="text/javascript">
            var $ = mui, doc = document;
            $.init({
                preloadPages:[//缓存其他页面
                    {
                        id:'setting',
                        url:'setting.html'
                    },
                    {
                        id:'info',
                        url:'info/info.html'
                    }
                ]
            });

            $.plusReady(function(params) {
                initInfo();
            });

            function initInfo () {
                $(".userImg img")[0].src = userInfo.user.logo;
                $(".userName")[0].innerText = userInfo.regdoctor.name;
            }
            // 订单
            tool.openWindow('classOrder', 'order/interOrder/order.html');
            // 页面跳转
            tool.openWindow('info', 'info/info.html');
            tool.openWindow('moneyList', 'moneyList.html');
            tool.openWindow('servicePromise', 'servicePromise.html');
            tool.openWindow('setting', 'setting.html');
        </script>
    </body>
</html>